package endurance.listener;

import org.springframework.context.ApplicationEvent;

/**
 * @Author: sunlin
 * @Date: 2024-05-17 16:03
 * @Version: 1.0
 * @Description:
 */
public class MessageEntity extends ApplicationEvent {

    private String email;

    private String phone;

    private String userId;

    public MessageEntity(Object source) {
        super(source);
    }

    public MessageEntity(Object source, String email, String phone) {
        super(source);
        this.email = email;
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "MessageEntity{" +
                "email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", userId='" + userId + '\'' +
                '}';
    }

}
